home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / bbs_util / wmch11.zip / WMCHAT.H < prev    next >
C/C++ Source or Header  |  1996-03-29  |  2KB  |  81 lines

  1. #ifndef _WMCHAT_H_
  2. #define _WMCHAT_H_
  3.  
  4. /* If you experience strange problems, be sure that other locations aren't
  5.    using the 5000-5009 range.  If they are, you can change the below ones
  6.    to anything you like, they're not dependent on the number, but they
  7.    MUST be kept in order (INST_LOC_CH2 must follow INST_LOC_CH1, etc.) */
  8.  
  9. #define INST_LOC_CH1          5000
  10. #define INST_LOC_CH2          5001
  11. #define INST_LOC_CH3          5002
  12. #define INST_LOC_CH4          5003
  13. #define INST_LOC_CH5          5004
  14. #define INST_LOC_CH6          5005
  15. #define INST_LOC_CH7          5006 
  16. #define INST_LOC_CH8          5007
  17. #define INST_LOC_CH9          5008
  18. #define INST_LOC_CH10         5009
  19.  
  20. #define INST_FLAGS_INVIS      0x0004  /* For invisibility */
  21.  
  22. typedef struct {
  23.   int r;
  24.   char aword[12];
  25.   char toprint[80];
  26.   char toperson[80];
  27.   char toall[80];
  28.   char singular[80];
  29. } ch_action;
  30.  
  31. typedef struct {
  32.   char name[60];
  33.   int sl;
  34.   char ar;
  35.   char sex;
  36.   char min_age;
  37.   char max_age;
  38. } ch_type;
  39.  
  40. /* Edit this line to allow > 100 actions.  There are actually 101 possible
  41.    actions by default (0 through 100 = 101) but it would've looked goofy
  42.    to use the number 99 :) */
  43. #define MAX_NUM_ACT 100
  44.  
  45. /* File: wmchat.c */
  46.  
  47. void wmchat(void);
  48. void who_online(int *nodes, int loc);
  49. void intro(int loc);
  50. void ch_direct(char *msg, int loc, char *color);
  51. void ch_whisper(char *msg, char *color);
  52. int rip_words(int start, char *cmsg, char *wd, int size, char lookfor);
  53. int wusrinst(char *n);
  54. void secure_ch(int ch);
  55. int unsecure_ch(char *r);
  56. void cleanup_chat(void);
  57. void page_user(int loc);
  58. void moving(int x, int loc);
  59. void out_msg(char *msg, int loc);
  60. void get_colors(char *color);
  61. void load_actions(void);
  62. void add_action(ch_action act);
  63. void free_actions(void);
  64. int f_action(int start, int end, char *aword);
  65. int check_action(char *msg, char *color, int loc);
  66. void exec_action(char *msg, char *color, int loc, int nact);
  67. void action_help(int num);
  68. void ga(char *msg, char *color, int loc);
  69. void toggle_avail(void);
  70. void toggle_invis(void);
  71. void exit_chat(unsigned char *s, unsigned char *r);
  72. void set_wmstr(void);
  73. void get_chname(int ch, char *tr);
  74. void list_channels(void);
  75. int change_channels(int loc);
  76. int check_ch(int ch);
  77. void load_channels(void);
  78. int userinst(char *user);
  79.  
  80. #endif
  81.